#ifndef GETWIDPROC_H
#define GETWIDPROC_H

#include "Windows.h"
#include "process.h"
#include "tlhelp32.h"
#include "winuser.h"
#include <TlHelp32.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <tchar.h>
#include <tlhelp32.h>
#include <windows.h>
///< 枚举窗口参数
typedef struct {
  HWND hwndWindow;   // 窗口句柄
  DWORD dwProcessID; // 进程ID
} EnumWindowsArg;

HWND GetWindowHwndByPID(DWORD dwProcessID);
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam);

HWND findHwndByName(std::string procName);
HWND findHwndByTitle(std::string procName, std::string title);
#endif // GETWIDPROC_H
